package com.tang.model.vistor;

import java.util.Random;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/8 7:54
 * @Desc
 * @Remarks
 */
public class Engineer extends IEmployee {
    private Integer codeLines;

    public Engineer(String name) {
        super(name);
        codeLines = new Random().nextInt(10 * 10000);
    }

    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }

    public Integer getCodeLines() {
        return codeLines;
    }
}
